package cn.cljh.day7_21.classCase._5overLoad;

public class OverLoadDemo {
    public static void main(String[] args) {
        System.out.println(add(1,2));
        System.out.println(add(1.0f,2.0f));
        System.out.println(add(1.0d,2.0d));
    }
    static int add(int x,int y){
        return x+y;
    }
    static double add(double x,double y){
        return x+y;
    }
    static float add(float x,float y){
        return x+y;
    }

}
